﻿<Window x:Class="Tests.Basics.UI.ThumbnailsViewer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <StackPanel Orientation="Vertical">
        <Button Click="Button_Click">Load Images</Button>
    <ItemsControl Name="m_items">
        <ItemsControl.ItemsPanel>
            <ItemsPanelTemplate>
                <WrapPanel/>
            </ItemsPanelTemplate>
        </ItemsControl.ItemsPanel>
        <ItemsControl.ItemTemplate>
            <DataTemplate>
                <Border BorderThickness="1" BorderBrush="Silver" Margin="2">
                    <StackPanel Orientation="Vertical" >
                        <Image Source="{Binding Image}" Width="180"/>
                        <Label Content="{Binding Frame}"></Label>
                    </StackPanel>
                </Border>
            </DataTemplate>
        </ItemsControl.ItemTemplate>
    </ItemsControl>
        </StackPanel>
</Window>
